package cn.v2tila.rsosa.student.service;

import cn.v2tila.rsosa.student.entity.DeliveryEntity;
import org.springframework.data.domain.Page;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author v2tila on 1:07 2019/3/29
 */
@Service
public interface DeliveryService {
    DeliveryEntity saveAndFlush(DeliveryEntity deliveryEntity);
    boolean existsByUniqueIdAndZpxxId(String uniqueId, Integer zpxxId);

    List<DeliveryEntity> findByUniqueId(String uniqueId);
    Page<DeliveryEntity> findByAssoIdAndCode(Integer assoId, Integer code,int page);

    boolean existsByAssoIdAndCode(Integer assoId, Integer code);

    DeliveryEntity findById(int id);



}
